﻿using System;
using System.Collections;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Collections.ObjectModel;


public partial class cy_test : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //DBaccess db = new DBaccess();
        //MyVector mv1 = new MyVector(1);
        //MyVector mv2 = new MyVector(2);
        //MyVector mv3 = new MyVector(3);
        //MyVector mv4 = new MyVector(4);
        //MyVector mv5 = new MyVector(5);
        //MyVector mv6 = new MyVector(6);
        //Response.Write(mv2.Show());
        //mv2.Recommand(0.1);
        //MyVector mv2reco = mv2.GetRecommand();
        //Response.Write(mv2reco.Show());
        //mv2reco.Sort();
        //Response.Write(mv2reco.Show());
        //Response.Write(mv2.Show());
        //mv2.Sort();
        //Response.Write(mv2reco.Show());
        //Response.Write("<br>");
        //DataSet ds = new DataSet();
        //DataSet ds1 = new DataSet();
        //ds = db.GetDataSet("select * from mr_course where cname = '" + mv2reco.GetIname(2) + "'");
        //course1.SetPicUrl(ds.Tables[0].Rows[0]["logo"].ToString());
        //course1.SetHyperLink(ds.Tables[0].Rows[0]["cname"].ToString(), "reco_resource.aspx?cid=" +  ds.Tables[0].Rows[0]["cid"].ToString(), mv2reco.GetValue(0).ToString("0.00"));
        ResourceReco rr = new ResourceReco(1, 13);
        Response.Write(rr.GetAll() + "<br>");
    }
}